package com.cloudfun.campusshare.common.model.dto;

import lombok.Data;
import org.springframework.util.ReflectionUtils;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.math.BigInteger;

/**
 * @author wangxiyuan
 * @description
 * @createDate 2021/5/21 15:31
 **/
@Data
public class ReplenishStatusCountDTO {
    private Integer replenishStatus;

    private BigInteger count;


    public static void main(String[] args) throws InvocationTargetException, IllegalAccessException {
        ReplenishStatusCountDTO dto = new ReplenishStatusCountDTO();
        Method setCount = ReflectionUtils.findMethod(ReplenishStatusCountDTO.class, "setCount",BigDecimal.class);
        setCount.invoke(dto,new BigDecimal(5 ));
        System.out.println(dto);
    }
}
